<?php
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers');
include 'includes/viewitem.php';
?>
<div class="viewStatic">
<?php if ($this->params->get('show_page_heading', 1)) : ?>
	<h1 class="pageHeading">
	<?php echo $this->escape($this->params->get('page_heading')); ?>
	</h1>
<?php endif; ?>
<!-- ITEM IMAGE -->
<?php if($customdata->get('cf_image_display') && $image && JRequest::getInt('start')==0) :?>
<div class="itemImage">
	<?php echo $image;?>
	<div class="imgCaption"><em><?php echo $alt;?></em></div>
</div>
<?php endif;?>
<!-- ITEM BODY -->
<div class="itemBody">
	<?php if (isset ($this->item->toc)) : ?>
		<div class="itemTable"><?php echo $this->item->toc; ?></div>
	<?php endif; ?>
    
    <?php if($customdata->get('cf_sapo_display') && $sapo && JRequest::getInt('start')==0 ) :?>
	<div class="itemSapo">
    	<p><?php echo $sapo;?></p>        
    </div>
    <?php endif;?>
 
       
    <div class="itemText">
    	<?php echo $this->item->event->beforeDisplayContent; ?>
			<?php echo $this->item->text; ?>
        <?php echo $this->item->event->afterDisplayContent; ?> 
	</div>   
    
</div>


</div>